package com.spice.service.entity.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spice.common.constant.PermissionConstant;
import com.spice.common.model.BaseEntity;
import com.spice.common.util.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(PermissionConstant.CHILI_STUDY)
@ApiModel(description = "辣椒科研表")
public class ChiliStudy extends BaseEntity {
    @ApiModelProperty(value = "序号",example = "1")
    @ExcelProperty(value = "序号")
    private String orderId;

    @ApiModelProperty(value = "中文名称",example = "新一代辣椒")
    @ExcelProperty(value = "中文名称")
    private String chineseName;

    @ApiModelProperty(value = "通俗名称",example = "新一代")
    @ExcelProperty(value = "通俗名称")
    private String commonName;

    @ApiModelProperty(value = "原料外观图",example = "")
    @ExcelProperty(value = "原料外观图")
    private String exteriorPicture;

    @ApiModelProperty(value = "品种",example = "大红袍")
    @ExcelProperty(value = "品种")
    private String breed;

    @ApiModelProperty(value = "产地",example = "湖南")
    @ExcelProperty(value = "产地")
    private String origin;

    @ApiModelProperty(value = "外形参数",example = "长度5-7cm")
    @ExcelProperty(value = "外形参数")
    private String shapeParameter;

    @ApiModelProperty(value = "断裂椒",example = "")
    @ExcelProperty(value = "断裂椒")
    private String brokenChili;

    @ApiModelProperty(value = "含籽率",example = "")
    @ExcelProperty(value = "含籽率")
    private String seedContain;

    @ApiModelProperty(value = "霉斑椒",example = "")
    @ExcelProperty(value = "霉斑椒")
    private String moldChili;

    @ApiModelProperty(value = "果梗（梗长度≥1cm）、叶",example = "")
    @ExcelProperty(value = "果梗（梗长度≥1cm）、叶")
    private String stemAndLeaves;

    @ApiModelProperty(value = "辣椒红色素",example = "")
    @ExcelProperty(value = "辣椒红色素")
    private String redChili;

    @ApiModelProperty(value = "辣椒素含量（g/kg）",example = "")
    @ExcelProperty(value = "辣椒素含量（g/kg）")
    private String capsaicinContain;

    @ApiModelProperty(value = "色泽",example = "")
    @ExcelProperty(value = "色泽")
    private String color;

    @ApiModelProperty(value = "色泽参数",example = "")
    @ExcelProperty(value = "色泽参数")
    private String colorParameter;

    @ApiModelProperty(value = "辣椒香型",example = "")
    @ExcelProperty(value = "辣椒香型")
    private String chiliSmellType;

    @ApiModelProperty(value = "外观及均匀性",example = "")
    @ExcelProperty(value = "外观及均匀性")
    private String shape;

    @ApiModelProperty(value = "总灰分",example = "")
    @ExcelProperty(value = "总灰分")
    private String totalAsh;

    @ApiModelProperty(value = "酸不溶性灰分",example = "")
    @ExcelProperty(value = "酸不溶性灰分")
    private String nonAcidAsh;

    @ApiModelProperty(value = "水分",example = "")
    @ExcelProperty(value = "水分")
    private String waterPercent;

    @ApiModelProperty(value = "维护人",example = "")
    @ExcelProperty(value = "维护人")
    private String maintainer;

    @ApiModelProperty(value = "维护时间",example = "2021-06-28 20:48:20")
    @ExcelProperty(value = "维护时间（系统注入）")
    private String maintainTime;

    @Override
    public ChiliStudy cleanup() {
        super.cleanup();
        this.setMaintainTime(DateUtil.getNowDateTime());
        return this;
    }
}
